const crypto = require('crypto')

const md5password = (password) => {
  const md5 = crypto.createHash('md5')
  try {
    const result = md5.update(password).digest('hex')
    return result
  } catch (error) {
    console.log('md5password:', error)
  }
}

module.exports = md5password
